//
//  KColumnListModule.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 ZHBen. All rights reserved.
//

#import "KUIModule.h"
#import "KColumnInfo.h"
#import "KColumnHorizontalView.h"

@protocol KColumnListModuleDelegate <KColumnHorizontalDelegate>
@optional
- (void)column:(KColumnInfo *)column displayPositionChanged:(KDisplayPosition)displayPosition;
@end

@interface KColumnListModule : KUIModule <KColumnListControl>

@property (readonly,nonatomic) KColumnHorizontalView * horizontalView;

@property (weak,nonatomic) id<KColumnListModuleDelegate> delegate;

- (NSArray<KColumnInfo *> *)columnList;

- (void)reloadHorizontalColumns:(NSArray<KColumnInfo *> *)columnList headerView:(UIView *)headerView toIndex:(NSInteger)toIndex;

- (void)reloadVerticalColumns:(NSArray<KColumnInfo *> *)columnList;

- (void)reload;

@end
